<template>
    <el-form :model="singeOption" label-width="80px">
        <el-form-item label="名字">
            <el-input v-model="singeOption.name"></el-input>
        </el-form-item>
        <el-form-item label="英文值">
            <el-input v-model="singeOption.key"></el-input>
        </el-form-item>
        <el-form-item label="排序">
            <el-input v-model="singeOption.order"></el-input>
        </el-form-item>
        <el-form-item>
            <el-button type="primary" @click="onSubmit">修改</el-button>
            <el-button type="primary" @click="onCancel">取消</el-button>
        </el-form-item>
    </el-form>
</template>

<script>
    import {computedPostSmDictionaryEidt} from "../.././css_js_img/computedSmDictionaryController"
    
    export default {
        props: [
            "singeOption"
        ],
        methods: {
            onSubmit(){
                computedPostSmDictionaryEidt(this,this.singeOption)
            },
            onCancel(){
                this.$emit('cancel',false);
            },
            refresh(){
                this.$emit("listSearch");
            }
        },
    }
</script>

